package com.ta.gulimall.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ta.gulimall.product.view.entity.AttrEntity;
import com.ta.gulimall.product.view.entity.SkuInfoEntity;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 * 
 * @author leifengyang
 * @email leifengyang@gmail.com
 * @date 2019-10-01 21:08:49
 */
@Mapper
public interface SkuInfoDao extends BaseMapper<SkuInfoEntity> {
    @MapKey("skuId")
    Map<Long, SkuInfoEntity> listSpuIdBySkuIds(@Param("skuIds") List<Long> skuIds);

    @MapKey("skuId")
    Map<Long, SkuInfoEntity> listSpuIdsBySkuIds(@Param("skuIds") List<Long> skuIds);
}
